home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java for 3D & VRML Worlds
/
Java for 3d and VRML Worlds.iso
/
world
/
blur2
/
blur2.wrl
< prev
Wrap
Text File
|
1996-10-17
|
2KB
|
102 lines
#VRML V2.0 utf8
#
# "Blur Effect" with one blur object
# created by ask@krc.sony.co.jp (Masamichi zzzcat Asukai)
#
# Copyright(C) 1996 Sony Corporation. All rights reserved.
#
Viewpoint {
position 0.0 0.0 30.0
}
Background {
skyColor 0.5 0.3 0.7
}
DEF REALOBJ Transform {
translation -10.0 0.0 0.0
children[
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.0
diffuseColor 0.4 0.6 0.5
emissiveColor 0.2 0.3 0.25
transparency 0.0
}
}
geometry Cube{}
}
]
}
DEF TIME1 TimeSensor{
cycleInterval 5.0
stopTime -1
loop TRUE
}
DEF POSINT PositionInterpolator{
set_fraction 0.5
key [0, 0.2, 0.3, 0.5, 0.7, 0.8, 1]
keyValue [-10 0 0, -6 0 0, 6 0 0, 10 0 0, 6 0 0, -6 0 0, -10 0 0]
}
DEF SCLINT PositionInterpolator{
set_fraction 0.5
key [0, 0.2, 0.3, 0.5, 0.7, 0.8, 1]
keyValue [1 1 1, 1 1 1, 3 3 3, 3 3 3, 3 3 3, 1 1 1, 1 1 1]
}
DEF ROTINT OrientationInterpolator{
set_fraction 0.5
key [0, 0.2, 0.3, 0.5, 0.7, 0.8, 1]
keyValue [0 1 0 0.0, 0 1 0 0.0, 0 1 0 1.57, 0 1 0 1.57, 0 1 0 1.57, 0 1 0 3.14, 0 1 0 3.14]
}
ROUTE TIME1.fraction_changed TO POSINT.set_fraction
ROUTE TIME1.fraction_changed TO SCLINT.set_fraction
ROUTE TIME1.fraction_changed TO ROTINT.set_fraction
ROUTE POSINT.value_changed TO REALOBJ.set_translation
ROUTE SCLINT.value_changed TO REALOBJ.set_scale
ROUTE ROTINT.value_changed TO REALOBJ.set_rotation
DEF BLUROBJ Transform {
translation -10.0 0.0 0.0
children[
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.0
diffuseColor 0.4 0.6 0.5
emissiveColor 0.2 0.3 0.25
transparency 0.5
}
}
geometry Cube{}
}
]
}
DEF TIME2 TimeSensor{
cycleInterval 0.05
stopTime -1
loop TRUE
}
DEF SCRIPT Script {
url "blur2.class"
eventIn SFTime interval
eventOut SFVec3f setTranslation
eventOut SFVec3f setScale
eventOut SFRotation setRotation
field SFNode realobj USE REALOBJ
}
ROUTE TIME2.cycleTime TO SCRIPT.interval
ROUTE SCRIPT.setTranslation TO BLUROBJ.set_translation
ROUTE SCRIPT.setScale TO BLUROBJ.set_scale
ROUTE SCRIPT.setRotation TO BLUROBJ.set_rotation